/*  
 *  Nanjing JIYU Technology Co.,Ltd All rights reserved.
 *  Copyright (C) 2022 
 *  ==============================================================
 * 
 *  track.h 
 *    底盘循迹控制功能、转弯功能的外部接口
 *
 *  --------------------------------------------------------------
 *  
 */

#ifndef _TRACK_H
#define _TRACK_H

#include "system.h"


typedef enum
{
  stop          = 0,
  speed_low     = 200,
  speed_medium  = 300,
  speed_high    = 500,
} track_speed_t;


void track_drive(track_speed_t s);

void track_reverse(track_speed_t s);

void track_stop(void);

void track_turn_left(track_speed_t s);

void track_turn_right(track_speed_t s);

void track_drive_test(void);

void track_reverse_test(void);

void track_turn_test(void);

#endif




